import request from "@/utils/request";
export function getList(params) {
  return request({
    url: "/member/mpPoster/getList",
    method: "GET",
    params,
  });
}
export function clearPostCache(data) {
  return request({
    url: "/member/mpPoster/clearPosterCache",
    method: "post",
    data,
  });
}
export function del(data) {
  return request({
    url: "/member/mpPoster/del",
    method: "post",
    data,
  });
}
export function add(data) {
  return request({
    url: "/member/mpPoster/add",
    method: "post",
    data,
  });
}
export function edit(data) {
  return request({
    url: "/member/mpPoster/edit",
    method: "post",
    data,
  });
}
export function detail(id) {
  return request({
    url: "/member/mpPoster/detail",
    method: "get",
    params: { id },
  });
}
export function setShareOfficial(data) {
  return request({
    url: "/member/mpPoster/setShareOfficial",
    method: "post",
    data,
  });
}
export function getShareOfficial() {
  return request({
    url: "/member/mpPoster/getShareOfficial",
    method: "get",
    params: {},
  });
}
export function getOfficialList() {
  return request({
    url: "/member/mpPoster/getOfficialList",
    method: "get",
    params: {},
  });
}

